<?php

namespace App\Elasticsearch;

use ScoutElastic\IndexConfigurator;
use ScoutElastic\Migratable;

/**关于日志的索引配置
 * Class LogIndexConfigurator
 * @package App\Elasticsearch
 */
class LogIndexConfigurator extends IndexConfigurator
{
    use Migratable;

    protected $name = 'laralog';
    /**
     * @var array
     */
    protected $settings = [
        'analysis' => [
            'analyzer' => [
                'default' => [
                    'type' => 'ik_max_word',  //默认的分词器
                ]
            ]
        ]
    ];
}